package org.megha.blog.example.enums;

/**
 * An enum for various payment modes.
 * The payment mode also specifies a surcharge to be charged for making payments.
 *
 * @author megha birmiwal
 */
public enum PaymentMode {
	CASH(0),
	CHECK(0.5),
	CREDIT_CARD(1.5),
	DEBIT_CARD(1.0),
	GIFT_CARD(0),
	PAYPAL(1.5),
	MONEY_ORDER(0.3);

	private final double surcharge;

	private PaymentMode(double surcharge) {
		this.surcharge = surcharge;
	}

	public double getSurcharge() {
		return surcharge;
	}
}
